package org.liyuw.sprt;

import java.util.Comparator;

import org.springframework.stereotype.Service;

@Service
public class CaseInsensitiveComparator implements Comparator<String> {

	@Override
    public int compare(String str1, String str2) {
	    assert str1 != null && str2 != null;
	    return String.CASE_INSENSITIVE_ORDER.compare(str1, str2);
    }
}
